<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<link rel="stylesheet" type="text/css" href="../css/main.css" media="screen" />
	<link rel="stylesheet" type="text/css" href="../css/colorbox/colorbox.css" media="screen" />
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
	<script type="text/javascript" src="../javascript/jquery.colorbox.js"></script>
 <sx:head/>
</head>
<body>
	<h4>Tag Distribution</h4>
	<table class="data_table">
		<tr>
			<th>Tag Description</th>
			<th>Frequency</th>
		</tr>
		<s:iterator value="tagsDistribution" status="index">
			<tr class="<s:if test="#index.even == true">field_nobg</s:if><s:else>field_bg</s:else>">
				<s:iterator>
					<td><s:property /></td>
				</s:iterator>
			</tr>
		</s:iterator>
	</table>
	<s:if test="(#session.currentTagPage - 1) > 0">
		<s:url var="previousPage" action="setTagPageNumber">
			<s:param name="page" value="%{#session.currentTagPage - 1}"/>
		</s:url>
		<sx:a afterNotifyTopics="viewTagDistributionTopic" cssClass="previousPage" href="%{previousPage}">
			<img src="../images/previous.JPG"/>
		</sx:a>
	</s:if>
	
	<s:if test="(#session.currentTagPage) > 0">
		<s:set name="maxTagPageNumber" value="maxTagPage"/>
		<s:if test="(#session.currentTagPage + 1) <= #maxTagPageNumber">
			<s:url var="nextTagPage" action="setTagPageNumber">
				<s:param name="page" value="%{#session.currentTagPage + 1}"/>
			</s:url>
			<sx:a afterNotifyTopics="viewTagDistributionTopic" cssClass="nextTagPage" href="%{nextTagPage}">
				<img src="../images/next.JPG"/>
			</sx:a>
		</s:if>
	</s:if>
</body>
</html>